<template>
  <div>
    <web-view :src="url"></web-view>
  </div>
</template>
<script>
export default {
  data () {
    return {
      url: ''
    }
  },
  onLoad () {
    this.url = wx.getStorageSync('url')
    this.showLoading()
  },
  methods: {
    showLoading () {
      wx.showLoading({
        title: '加载中' // 数据请求前loading
      })
      setTimeout(() => {
        wx.hideLoading()
      }, 1500)
    }
  }
}
</script>
